package com.qboot.rabbitmq.topic;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 订阅模型 Topic - 配置
 *
 * @author Tellsea
 * @date 2023/3/7
 */
@Configuration
public class RabbitMqTopicConfig {

    @Bean("topicQueue")
    public Queue topicQueue() {
        return new Queue(TopicConst.QUEUE_NAME);
    }
}
